home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / sstevd.z / sstevd
Encoding:
Text File  |  2002-10-03  |  5.8 KB  |  199 lines

  1.  
  2.  
  3.  
  4. SSSSSSSSTTTTEEEEVVVVDDDD((((3333SSSS))))                                                          SSSSSSSSTTTTEEEEVVVVDDDD((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      SSTEVD - compute all eigenvalues and, optionally, eigenvectors of a real
  10.      symmetric tridiagonal matrix
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE SSTEVD( JOBZ, N, D, E, Z, LDZ, WORK, LWORK, IWORK, LIWORK,
  14.                         INFO )
  15.  
  16.          CHARACTER      JOBZ
  17.  
  18.          INTEGER        INFO, LDZ, LIWORK, LWORK, N
  19.  
  20.          INTEGER        IWORK( * )
  21.  
  22.          REAL           D( * ), E( * ), WORK( * ), Z( LDZ, * )
  23.  
  24. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  25.      These routines are part of the SCSL Scientific Library and can be loaded
  26.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  27.      directs the linker to use the multi-processor version of the library.
  28.  
  29.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  30.      4 bytes (32 bits). Another version of SCSL is available in which integers
  31.      are 8 bytes (64 bits).  This version allows the user access to larger
  32.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  33.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  34.      only one of the two versions; 4-byte integer and 8-byte integer library
  35.      calls cannot be mixed.
  36.  
  37. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  38.      SSTEVD computes all eigenvalues and, optionally, eigenvectors of a real
  39.      symmetric tridiagonal matrix. If eigenvectors are desired, it uses a
  40.      divide and conquer algorithm.
  41.  
  42.      The divide and conquer algorithm makes very mild assumptions about
  43.      floating point arithmetic. It will work on machines with a guard digit in
  44.      add/subtract, or on those binary machines without guard digits which
  45.      subtract like the Cray X-MP, Cray Y-MP, Cray C-90, or Cray-2. It could
  46.      conceivably fail on hexadecimal or decimal machines without guard digits,
  47.      but we know of none.
  48.  
  49.  
  50. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  51.      JOBZ    (input) CHARACTER*1
  52.              = 'N':  Compute eigenvalues only;
  53.              = 'V':  Compute eigenvalues and eigenvectors.
  54.  
  55.      N       (input) INTEGER
  56.              The order of the matrix.  N >= 0.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. SSSSSSSSTTTTEEEEVVVVDDDD((((3333SSSS))))                                                          SSSSSSSSTTTTEEEEVVVVDDDD((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      D       (input/output) REAL array, dimension (N)
  75.              On entry, the n diagonal elements of the tridiagonal matrix A.
  76.              On exit, if INFO = 0, the eigenvalues in ascending order.
  77.  
  78.      E       (input/output) REAL array, dimension (N)
  79.              On entry, the (n-1) subdiagonal elements of the tridiagonal
  80.              matrix A, stored in elements 1 to N-1 of E; E(N) need not be set,
  81.              but is used by the routine.  On exit, the contents of E are
  82.              destroyed.
  83.  
  84.      Z       (output) REAL array, dimension (LDZ, N)
  85.              If JOBZ = 'V', then if INFO = 0, Z contains the orthonormal
  86.              eigenvectors of the matrix A, with the i-th column of Z holding
  87.              the eigenvector associated with D(i).  If JOBZ = 'N', then Z is
  88.              not referenced.
  89.  
  90.      LDZ     (input) INTEGER
  91.              The leading dimension of the array Z.  LDZ >= 1, and if JOBZ =
  92.              'V', LDZ >= max(1,N).
  93.  
  94.      WORK    (workspace/output) REAL array,
  95.              dimension (LWORK) On exit, if INFO = 0, WORK(1) returns the
  96.              optimal LWORK.
  97.  
  98.      LWORK   (input) INTEGER
  99.              The dimension of the array WORK.  If JOBZ  = 'N' or N <= 1 then
  100.              LWORK must be at least 1.  If JOBZ  = 'V' and N > 1 then LWORK
  101.              must be at least ( 1 + 4*N + N**2 ).
  102.  
  103.              If LWORK = -1, then a workspace query is assumed; the routine
  104.              only calculates the optimal size of the WORK array, returns this
  105.              value as the first entry of the WORK array, and no error message
  106.              related to LWORK is issued by XERBLA.
  107.  
  108.      IWORK   (workspace/output) INTEGER array, dimension (LIWORK)
  109.              On exit, if INFO = 0, IWORK(1) returns the optimal LIWORK.
  110.  
  111.      LIWORK  (input) INTEGER
  112.              The dimension of the array IWORK.  If JOBZ  = 'N' or N <= 1 then
  113.              LIWORK must be at least 1.  If JOBZ  = 'V' and N > 1 then LIWORK
  114.              must be at least 3+5*N.
  115.  
  116.              If LIWORK = -1, then a workspace query is assumed; the routine
  117.              only calculates the optimal size of the IWORK array, returns this
  118.              value as the first entry of the IWORK array, and no error message
  119.              related to LIWORK is issued by XERBLA.
  120.  
  121.      INFO    (output) INTEGER
  122.              = 0:  successful exit
  123.              < 0:  if INFO = -i, the i-th argument had an illegal value
  124.              > 0:  if INFO = i, the algorithm failed to converge; i off-
  125.              diagonal elements of E did not converge to zero.
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. SSSSSSSSTTTTEEEEVVVVDDDD((((3333SSSS))))                                                          SSSSSSSSTTTTEEEEVVVVDDDD((((3333SSSS))))
  137.  
  138.  
  139.  
  140. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  141.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  142.  
  143.      This man page is available only online.
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.